package com.hmall.api.trade;

import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

/**
 * 订单
 *
 * @author makangkang
 * @date 2025/11/9 21:24
 */
@FeignClient(value = "trade-service",path = "/orders")
public interface TradeClient {

    /**
     * 标记订单已支付
     * @param orderId 订单id
     */
    @ApiOperation("标记订单已支付")
    @ApiImplicitParam(name = "orderId", value = "订单id", paramType = "path")
    @PutMapping("/{orderId}")
    public void markOrderPaySuccess(@PathVariable("orderId") Long orderId);
}
